/* Copyright (C) 2008 Sahid Ferdjaoui <sahid@funraill.org>
 *
 *   This file is part of Postmemd.
 *
 * Postmemd is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */


#ifndef PM_CONFIG_H
#define PM_CONFIG_H

/**
 * @file pm_config.h
 * @brief Postmem configuration
 */


#include <netinet/in.h>


typedef struct config {
	int										port;
	int										backlog;
	int										max_buffer_size;
	struct in_addr				interface;

	int										mem_lock;
	int										mem_size;

	int                   loop_flag;

	int										num_slaves;
	int                   max_size_slaves;
} config ;


/**
 * Initialize default configuration for
 * postmemd.
 * with option change global variable conf.
 */
void pm_init_config ();


#endif
